package com.example.project_springboot.mapper;

import com.example.project_springboot.pojo.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
@Mapper
public interface AccountMapper {
    @Select("select * from account where name = #{fromName} ")
    Account findByName(String fromName);
    @Select("select * from account where name = #{toName} ")
    Account findByName1(String toName);
    @Update("update account set money = #{money} where name = #{name}")
    void updateMoneyByName(String name,double money);

}